package com.ruoyi.gpt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * chatGpt用户每日签到业务对象 f_sign_in
 *
 * @author ztx
 * @date 2023-04-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class SignInBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 连续签到天数
     */
    @NotNull(message = "连续签到天数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer continueDays;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 总签到天数
     */
    @NotNull(message = "总签到天数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer totalDays;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userNickname;


}
